import App from "../App";
import City from "../pages/city";
import Home from "../pages/home";
import My from "../pages/my";
import {createBrowserRouter} from 'react-router-dom'


export const router = createBrowserRouter([
    {
        path: "/",
        element: <App></App>,
        children: [
            {
                index: true,
                element: <Home></Home>
            },
            {
                path: "home",
                element: <Home></Home>
            },
            {
                path: "my",
                element: <My></My>
            }
        ]
    },
    {
        path: "/city",
        element: <City></City>
    }
]);